from SistemaOperativo.Kernel import Kernel
from SistemaOperativo.Program import Program
from SistemaOperativo.PlanificadorRR import PlanificadorRR
from SistemaOperativo.PlanificadorFCFS import PlanificadorFcFs
from SistemaOperativo.PlanificadorRRConPrioridad import PlanificadorRRConPrioridad
from SistemaOperativo.PriorityPlanner import PriorityPlanner
from SistemaOperativo.PlanificadorFCFS import PlanificadorFcFs
from Memory.Programa import Programa
from SistemaOperativo.Instruction import CpuInstruction, IoInstruction



so = Kernel(PlanificadorRR(2))
inst1 = CpuInstruction(1)
inst2 = IoInstruction(3)
inst3 = CpuInstruction(1)
inst4 = CpuInstruction(2)
inst5 = CpuInstruction(1)

instrList1 = []
instrList1.append(inst1)
instrList1.append(inst2)
instrList1.append(inst3)

prg = Programa(instrList1, "Eclipse")

instrList2 = instrList1[:]
instrList2.append(inst4)
instrList2.append(inst5)

prog2 = Programa(instrList2)
so.start()
so.run(prg)
so.run(prog2)

